if random():
    if random():
        if random():
            if random():
                pass
            print("foo")
        else:
            print("foo")
    print("foo")
else:
    print("foo")
##r
if random():
    if random():
        if random():
            if random():
                pass
            print("foo")
        else:
            print("foo")
    print("foo")
else:
    print("foo")